<!DOCTYPE html>
<html>
{include file="public/head" /}
<style>
    table {
        table-layout: fixed;
    }


    td {
		font-size:12px;

        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
</style>
<body class="zanpian-body">
<section class="content">
<!-- /.panel-tool -->
    <div class="tab-content">
              <table id="table" class="table table-striped table-bordered table-hover" style="margin-top: 0px;" width="100%" height='100%'>
            <tbody> 
             {if condition="(!empty($url)) AND (!empty($caiji))"}                    
             <tr><td valign='top' id='caiji' style="height:100%;text-align:center; overflow:hidden; padding:0px;"><h2>共{:count($url)}个定时采集任务等侍中...</h2></td></tr>
             {/if}
             <tr><td valign='top' height='1' style="background:#e8e8e8"></td></tr>
 {if condition="(!empty($GLOBALS['config']['html']['url_html'])) AND (!empty($create))"}           
<tr><td valign='top' id='create' style="height:100%;text-align:center; overflow:hidden;padding:0px;"><h2>静态页面生成等待中...</h2></td></tr>    
{/if}       
                    
              </tbody>
              </table>


         </div>
         <!-- /.panel-body --> 
        </section>
{include file="public/footer" /}
<script type="text/javascript">
var $time = new Array();
$time['caiji'] = {$caiji};
{notempty name="create"} 
$time['create'] = {$create};
if($time['create'] > $time['caiji']){
	setInterval('$create()',1000*60*{$create});
}
function $create(){
	$("#create").html("<iframe  frameborder='0' width='100%' height='400' src='{$html_url}' scrolling='auto'></iframe>");
}
{/notempty}
if($time['caiji'] > 0){
	setInterval('$caiji()',1000*60*{$caiji});
}
var urln = 0;
var array_url = new Array();{volist name="url" id="zanpian"}array_url[{$key}]='{$zanpian}';{/volist}
function $caiji(){
	if(urln < array_url.length-1){
		urln++;
	}else{
		urln = 0;
	}
	if(array_url[urln]){
		$("#caiji").html("<iframe  frameborder='0' width='100%' height='400' src='"+array_url[urln]+"' scrolling='auto'></iframe>");
	}
}
$(document).ready(function(){
	zanpian.cms.all();	
});	
</script>
</body>
</html>
